// Comp Audio Version 1.2

// This Program Sets the value of the first set of popups
// to the audio level of the comp, scaled to lie within the range [min, max]

//      LAYER                                               PROPERTY                     CHANNEL
//      ------                                              ----------                     --------
// 1: Layer to copy audio amplitude into      property to vary           channel of property
// 2: doesn't matter                                   doesn't matter               doesn't matter

max = 1000;		// change this to the maximum value
min = 50;				 // change this to the minimum value

value(pop_layer(1), pop_property(1)) [pop_channel(1)] = 
     min + comp_audio_amplitude() * (max - min);
